package vld

import (
	sqlc "bp/db/sqlc"
)

// IsCouponNature check string is em_coupon_nature
func IsCouponNature(v string) (success bool) {
	switch sqlc.EmCouponNature(v) {
	case sqlc.EmCouponNatureVoucher, sqlc.EmCouponNatureCode:
		success = true
	}
	return
}
